Enhancing Saga Pattern for Distributed Transactions within a Microservices Architecture

نویسندگان

چکیده

The saga pattern manages transactions and maintains data consistency across distributed microservices via utilizing local sequential that update each service publish messages to trigger the next ones. Failure by one transaction causes execution of compensating counteract preceding one. However, lacks isolation, meaning reading writing from an incomplete is allowed. Therefore, this research proposes enhanced resolves lack isolation issue use quota cache commit-sync service. Some will be transferred database layer memory layer. Thus, no wrong commit main occur. If a microservice fails completed, other run compensation rollback changes only affect instead Database performed when all are completed successfully. A lightweight microservices-based e-commerce system was implemented for comparison. Experiments were conducted validation evaluation. Results demonstrate proposal has capability resolving isolation. indicate achieves better performance not in typical cases but also scenario needs handle exceptions.

برای دانلود باید عضویت طلایی داشته باشید

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

A Distributed Architecture for Transactions Synchronization in Distributed Database Systems

Various concurrency control algorithms have been proposed for use in distributed database systems. But, the number of algorithms available for the distributed concurrency control, come into one of three basic classes: locking algorithms, Timestamp algorithms and optimistic (or certification) algorithms. In this paper we are presenting a Distributed Transaction Processing Model and an approach f...

متن کامل

Treating Microservices as a Unifed, Distributed Database

Microservices have become a popular application architecture,[2] allowing multiple teams within an organization to efficiently build a complex system. Additionally, the rise of native mobile apps and interactive javascript web apps bring sophisticated business logic into the client. A principled approach–inspired by database architectures–enables frontend developers to treat the backend as if i...

متن کامل

Microservices in Web Objects Enabled IoT Environment for Enhancing Reusability

In the ubiquitous Internet of Things (IoT) environment, reusing objects instead of creating new one has become important in academics and industries. The situation becomes complex due to the availability of a huge number of connected IoT objects, and each individual service creates a new object instead of reusing the existing one to fulfill a requirement. A well-standard mechanism not only impr...

متن کامل

Business Process Modeling and Execution - A Compiler for Distributed Microservices

In this paper, we propose to rethink the dominant logic of how to model business processes. We think that an actor based approach supports in a much better way the fundamental nature of business processes. We present a proposal for a compiler architecture to model and execute business processes as a set of communicating microservices that are hosted on a general purpose virtual machine for dist...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

ژورنال

عنوان ژورنال: Applied sciences

سال: 2022

ISSN: ['2076-3417']

DOI: https://doi.org/10.3390/app12126242